package com.gtt.jr.repository.domain;

import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.OneToOne;

import com.gtt.jr.repository.domain.base.BaseDomain;

/**
 * Comments Domain
 * 
 * @author Michael(gao12581@sina.com)
 * @date 2011-3-2 08:49:58
 * 
 */
@Entity
public class Comments extends BaseDomain {

	private static final long serialVersionUID = -4606141866700049126L;

	private Calendar created;
	private String username;
	private String mobile;
	private String email;

	@Lob
	@Column
	private String content;

	@OneToOne
	private Comments parent;

	public Calendar getCreated() {
		return created;
	}

	public void setCreated(Calendar created) {
		this.created = created;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Comments getParent() {
		return parent;
	}

	public void setParent(Comments parent) {
		this.parent = parent;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

}
